﻿@model CottagesOfHope.Core.Models.Events
@{
    ViewBag.Title = "Create Event";
}

<h2>Events</h2>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/jqueryui")
    @Styles.Render("~/Content/themes/base/css")

    <script type="text/javascript">
        $(document).ready(function () {
            $("#Date").datepicker({
                changeMonth: true,
                changeYear: true
            });
        });
    </script>
}

<style type ="text/css">
    .text_lbl {
    color: #AAAA33;
    }
</style>
<head>
    <title>Events</title>
  
   </head>
<h2>@ViewBag.Title</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    @Html.AntiForgeryToken()
    <fieldset>
        <legend>Event</legend>

        <div class="text_lbl">
            @Html.LabelFor(model => model.Date, "Date")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Date)
            @Html.ValidationMessageFor(model => model.Date)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Time, "Time")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Time)
           
            @Html.ValidationMessageFor(model => model.Time)
        </div>

          <div class="editor-label">
            @Html.LabelFor(model => model.Description, "Description")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
           
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Owner, "Owner")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Owner)
            @Html.ValidationMessageFor(model => model.Owner)
        </div>
         <div class="editor-label">
            @Html.LabelFor(model => model.Category, "Category")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Category)
            @Html.ValidationMessageFor(model => model.Category)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to Profile", "Index")
</div>